package com.sky.client;

import com.sky.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("category-service")
public interface CategoryClient {
    @GetMapping("/admin/category")
    public List<Category> getByIds(@RequestParam("ids") List<Long> ids);
}
